package com.rds.benchmark.util;

public class MakeValue {

    public static long num = 0;

    public static String value = "value-"
            + "123456789012345678901234567890123456789012345678901234567890"
            + "123456789012345678901234567890123456789012345678901234567890"
            + "123456789012345678901234567890123456789012345678901234567890"
            + "123456789012345678901234567890123456789012345678901234567890";

    public static void make(String valueLength){
        long length = Long.valueOf(valueLength) > 6 ? Long.valueOf(valueLength) - 6 : 0;
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("value-");
        for(long i = 1; i <= length; i++){
            if(length < 10) stringBuffer.append(i);
            if(i%10 == 0)
                stringBuffer.append("1234567890");
        }
        value = stringBuffer.toString();
    }
}
